/// id : "118273"
/// name : "Flutter Web"
/// user_agent : "flutter-webrtc/web-plugin 0.0.1  ( Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 )"

class PeerBean {
  bool isShelf = false;
  bool isCall = false;
  PeerBean({
      String? id, 
      String? name, 
      String? userAgent,}){
    _id = id;
    _name = name;
    _userAgent = userAgent;
}

  PeerBean.fromJson(dynamic json) {
    _id = json['id'];
    _name = json['name'];
    _userAgent = json['user_agent'];
  }
  String? _id;
  String? _name;
  String? _userAgent;
PeerBean copyWith({  String? id,
  String? name,
  String? userAgent,
}) => PeerBean(  id: id ?? _id,
  name: name ?? _name,
  userAgent: userAgent ?? _userAgent,
);
  String? get id => _id;
  String? get name => _name;
  String? get userAgent => _userAgent;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['name'] = _name;
    map['user_agent'] = _userAgent;
    return map;
  }

}